$(".breadcrumb li").on("click", function() {
	var form = $(this).attr("id"); // 获取点击元素的id
	console.info(form);
	$.ajax({
		url: "showEarliestFiveDataOrderByForm.do",
		data: {
			id: value,
			form: form,
			pageNo: 1,
			size: 10
		},
		type: "post",
		success: function(data) {
			var obj = data.results;
			var shtml = "";
			for(var i = 0; i < obj.length; i++) {
				if(obj[i].title == undefined) {
					obj[i].title = "";
					obj[i].source = "新浪微博";
				}

				//										shtml += "<div class=\"checkbox\"  style=\"margin-top: 6px;border-bottom: 2px dotted #C7C7C7;\">";
				//										shtml += "<label> <input type=\"checkbox\" name=\"checkbox\"  id=\"" + obj[i].id + "\" value=\"" + obj[i].form + "\" http=" + obj[i].http + ">";
				//										shtml += "<a style=\"color: #0000FF; text-decoration: none;\">" + obj[i].title.substring(0, 15) + "</a></label>";
				//										shtml += "<h5 style=\"text-indent: 2em; color: #A94442\">" + obj[i].source + " </h5>";
				//										shtml += "<p style=\"margin-left: 20px;height:100px;overflow:hidden\">" + obj[i].content + "</p>";
				//										shtml += "<a target=_blank href=\"toContentpage.do?id=" + obj[i].id + "&form=" + obj[i].form + "\"><button  style=\"margin-left: 15px; background-color: #31708F;color: white;border: none;margin-bottom:10px;\">查看全文</button></a></div>";
				shtml += "<tr><td><input type=\"checkbox\" name=\"checkbox\"  id=\"" + obj[i].id + "\" value=\"" + obj[i].form + "\" http=" + obj[i].http + "></td>"
				shtml += "<td><a target=_blank href=\"toContentpage.do?id=" + obj[i].id + "&form=" + obj[i].form + "\" style=\"text-indent:0em;\">" + obj[i].title.substring(0, 15) + "<a></td>"
				shtml += "<td>" + obj[i].source + "</td>"
				shtml += "<td>" + obj[i].time + "</td></tr>"

			}
			$("#list").empty();
			$("#list").html(shtml);
		}
	})
	/*分页S*/
	$.ajax({
		url: "showEarliestFiveDataOrderByForm.do",
		data: {
			id: value,
			form: form,
			size: 10
		},
		type: "post",
		success: function(data) {
			console.log(data);
			console.info(data.totalPage);
			$("#zhuantipagerArea").createPage({
				current: 1,
				pageCount: data.totalPage,
				backFn: function(p) {
					console.info(data.totalPage)
					console.log(p);
					$.ajax({
						url: "showEarliestFiveDataOrderByForm.do",
						data: {
							id: value,
							form: form,
							pageNo: p,
							size: 10
						},
						type: "post",
						success: function(data) {
							var obj = data.results;
							console.info(obj);
							var shtml = "";
							for(var i = 0; i < obj.length; i++) {
								if(obj[i].title == undefined) {
									obj[i].title = "";
									obj[i].source = "新浪微博";
								}
								shtml += "<tr><td><input type=\"checkbox\" name=\"checkbox\"  id=\"" + obj[i].id + "\" value=\"" + obj[i].form + "\" http=" + obj[i].http + "></td>"
								shtml += "<td><a target=_blank href=\"toContentpage.do?id=" + obj[i].id + "&form=" + obj[i].form + "\" style=\"text-indent:0em;\">" + obj[i].title.substring(0, 15) + "<a></td>"
								shtml += "<td>" + obj[i].source + "</td>"
								shtml += "<td>" + obj[i].time + "</td></tr>"
							}
							$("#list").empty();
							$("#list").html(shtml);
						}

					});
				}
			});
		}

	});

	/*  分页E*/

})